// import StringTool from '@/utils/StringTool'
import StringUtil from '@/utils/StringUtil'
// import UserManager from '@/utils/UserManager';
// import DictUtil from '@/utils/DictUtil'
import service from '@/utils/request'
// import ComponentConfig from './ComponentConfig'
import ConsPrototypeConfig from './ConsPrototypeConfig'
import FormRulePrototypeConfig from './FormRulePrototypeConfig'
import FunctionPrototypeConfig from './FunctionPrototypeConfig'
import UserManager from '@/utils/UserManager'
import DictUtil from '@/utils/DictUtil'
// import OptionsCons from '@/utils/OptionsCons';

/**
 * author : xuzongmeng
 * date   : 2018/9/29
 * desc   : 全局声明的属性或方法 方便快捷调用
 */

class PrototypeConfig {
  static createPrototype (vue) {
    // ComponentConfig.createPrototype(vue)
    ConsPrototypeConfig.createPrototype(vue)
    FormRulePrototypeConfig.createPrototype(vue)
    FunctionPrototypeConfig.createPrototype(vue)
    vue.prototype.DictUtil = DictUtil
    vue.prototype.$httpRequest = service
    vue.prototype.StringUtil = StringUtil
    vue.prototype.UserManager = UserManager
  }
}

export default PrototypeConfig
